import java.util.Scanner;

// 题目：古典问题：有一对兔子，从出生后第3个月起每个月都生一对兔子，
// 小兔子长到第三个月后每个月又生一对兔子，假如兔子都不死，问每个月的兔子总数为多少？
public class Test01 {
    public static void main(String[] args) {
        int month = 1;//第几个月份
        long i = 1, k = 0;
        long sum = 1;
        int testinput = 0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入月份");
        testinput = scanner.nextInt();
        scanner.close();
        System.out.println("第" + month + "个月:" + sum + "对");
        for (month = 2; month < testinput + 1; month++) {
            sum = i + k;
            k = i;
            i = sum;
            System.out.println("第" + month + "个月:" + sum + "对");
        }
    }
}
